import request from '@/utils/request'

// 查询探针任务列表
export function listTemperatureData(query) {
  return request({
    url: '/baseinfo/temperatureData/list',
    method: 'get',
    params: query
  })
}

// 查询探针任务详细
export function getTemperatureData(id) {
  return request({
    url: '/baseinfo/temperatureData/' + id,
    method: 'get'
  })
}

// 新增探针任务
export function addTemperatureData(data) {
  return request({
    url: '/baseinfo/temperatureData',
    method: 'post',
    data: data
  })
}

// 修改探针任务
export function updateTemperatureData(data) {
  return request({
    url: '/baseinfo/temperatureData',
    method: 'put',
    data: data
  })
}

// 删除探针任务
export function delTemperatureData(id) {
  return request({
    url: '/baseinfo/temperatureData/' + id,
    method: 'delete'
  })
}
